﻿using System.Collections.Generic;
using Concret;

namespace ORM
{
	/// <summary>
	/// 获取子对象集合
	/// </summary>
	public static class ConcretChildren
	{
		
/// <summary>
/// Dir下的Photo集合(Photo.dir->Dir)
/// </summary>
public static IEnumerable<Photo> Dir__Photo(this Dir main)
=> main.dbOp.Photo.GetByParameter((Photo.FIELD_DIR,"=",main.Id));
				
/// <summary>
/// User下的Photo集合(Photo.user->Users)
/// </summary>
public static IEnumerable<Photo> User__Photo(this Users main)
=> main.dbOp.Photo.GetByParameter((Photo.FIELD_USER,"=",main.Id));
				
	}
}